import { base } from "./api";
import axios from "./http";
import qs from "qs";

const WEBSITE = {
  // 获取设备数据
  getData: params =>
    axios.get(`${base.URL}/oilSmoke/deviceInfo/selectAllByInfo`, { params }),
  // 更新设备数据
  upData: params =>
    axios.post(
      `${base.URL}/oilSmoke/deviceInfo/editDevi`,
      qs.stringify(params)
    )
};

export default WEBSITE;
